package com.xiegang.servicedriveruser.controller;

import com.xiegang.internalcommon.dto.ResponseResult;
import com.xiegang.servicedriveruser.mapper.DriverUserMapper;
import com.xiegang.servicedriveruser.service.DriverUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xieGang
 * @description
 * @date 2023/3/28 20:30
 **/
@RestController
public class TestController {

    @Autowired
    private DriverUserService driverUserService;

    @Autowired
    private DriverUserMapper driverUserMapper;
    @GetMapping(value = "/test")
    public String test() {
        return "test";
    }

    @GetMapping(value = "/testGetDriverUser")
    public ResponseResult testGetDriverUser() {
        return driverUserService.testGetDriverUser();
    }

    //测试mapxml是否正常
    @GetMapping("/testxml")
    public int testXml(String cityCode){
        int i = driverUserMapper.selectDriverUserCountByCityCode(cityCode);
        return i;
    }

}
